home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 19 / CU Amiga Magazine's Super CD-ROM 19 (1998)(EMAP Images)(GB)[!][issue 1998-02].iso / CUCD / Programming / LEDA / DaggeX / system.twmrc < prev    next >
Text File  |  1993-12-08  |  2KB  |  90 lines

  1. #
  2. # $XConsortium: system.twmrc,v 1.8 91/04/23 21:10:58 gildea Exp $
  3. # Default twm configuration file; needs to be kept small to conserve string
  4. # space in systems whose compilers don't handle medium-sized strings.
  5. #
  6. # Sites should tailor this file, providing any extra title buttons, menus, etc.
  7. # that may be appropriate for their environment.  For example, if most of the
  8. # users were accustomed to uwm, the defaults could be set up not to decorate
  9. # any windows and to use meta-keys.
  10. #
  11.  
  12. NoGrabServer
  13. RestartPreviousState
  14. DecorateTransients
  15. TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
  16. ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
  17. MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
  18. IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"
  19. IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*"
  20. #ClientBorderWidth
  21.  
  22. Color
  23. {
  24.     BorderColor "slategrey"
  25.     DefaultBackground "maroon"
  26.     DefaultForeground "gray85"
  27.     TitleBackground "maroon"
  28.     TitleForeground "gray85"
  29.     MenuBackground "maroon"
  30.     MenuForeground "gray85"
  31.     MenuTitleBackground "gray70"
  32.     MenuTitleForeground "maroon"
  33.     IconBackground "maroon"
  34.     IconForeground "gray85"
  35.     IconBorderColor "gray85"
  36.     IconManagerBackground "maroon"
  37.     IconManagerForeground "gray85"
  38. }
  39.  
  40. #
  41. # Define some useful functions for motion-based actions.
  42. #
  43. MoveDelta 3
  44. Function "move-or-lower" { f.move f.deltastop f.lower }
  45. Function "move-or-raise" { f.move f.deltastop f.raise }
  46. Function "move-or-iconify" { f.move f.deltastop f.iconify }
  47.  
  48. #
  49. # Set some useful bindings.  Sort of uwm-ish, sort of simple-button-ish
  50. #
  51. Button1 = : root : f.menu "defops"
  52.  
  53. Button1 = m : window|icon : f.function "move-or-lower"
  54. Button2 = m : window|icon : f.iconify
  55. Button3 = m : window|icon : f.function "move-or-raise"
  56.  
  57. Button1 = : title : f.function "move-or-raise"
  58. Button2 = : title : f.raiselower
  59.  
  60. Button1 = : icon : f.function "move-or-iconify"
  61. Button2 = : icon : f.iconify
  62.  
  63. Button1 = : iconmgr : f.iconify
  64. Button2 = : iconmgr : f.iconify
  65.  
  66. #
  67. # And a menus with the usual things
  68. #
  69. menu "defops"
  70. {
  71. "Twm"    f.title
  72. "Iconify"    f.iconify
  73. "Resize"    f.resize
  74. "Move"        f.move
  75. "Raise"        f.raise
  76. "Lower"        f.lower
  77. ""        f.nop
  78. "Focus"        f.focus
  79. "Unfocus"    f.unfocus
  80. "Show Iconmgr"    f.showiconmgr
  81. "Hide Iconmgr"    f.hideiconmgr
  82. ""        f.nop
  83. "Kill"        f.destroy
  84. "Delete"    f.delete
  85. ""        f.nop
  86. "Restart"    f.restart
  87. "Exit"        f.quit
  88. }
  89.